package com.example.qt.ptplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;
import java.util.List;

@Data
@TableName("comments")
public class Comments {

    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    private Integer torrentId;
    private Integer comCommentId;
    private Integer userId;
    private String content;
    private Boolean isAnonymous;
    private Integer likesCount = 0;
    private Integer replyCount = 0;
    private Date commentTime;


    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private List<Comments> replies;

    @TableField(exist = false)
    private List<String> images;
}